<?php if (Yii::app()->user->hasFlash('alertmsg')): ?>
    <?php $msg = Yii::app()->user->getFlash('alertmsg'); ?>
    <?php if ($msg['type'] == 'success'): ?>
    <?php $type = 'success'; ?>
    <?php elseif ($msg['type'] == 'error'): ?>
    <?php $type = 'error'; ?>
    <?php elseif ($msg['type'] == 'info'): ?>
    <?php $type = 'info'; ?>
    <?php else: ?>
    <?php $type = 'warning'; ?>
    <?php endif; ?>
    <div class="callout callout-<?php echo $type; ?>" style="margin:0;">
        <h4 style="margin-bottom:0;"><?php echo $msg['msg']; ?></h4>
    </div>
<?php endif; ?>
